Adapting to latest changes on FabriciusBundle.
Cleaned up controller by moving functionality to repository.