Refactor and optimize ideas and projects routes.