Removed the static method so you can instantiate the repository with the method getRepository