Extracted responses from RepositoryController into a private function

This should avoid duplications pointed out on: https://codeclimate.com/github/mezuro/kalibro_processor/RepositoriesController