Refactor the projects to use a before_action instead of repeating the find code