Refactor sync

Move Group and Project sync methods to corresponding controllers.