Refactor the project to reduce code duplication
For a lot of endpoints, the logic is the same for projects and forks, we
should thus rely on the same logic while preserving the different URL
and be able to adjust our logic according to if we are on a project or
a fork.