Refactor sync controller into smaller parts for each model