Put the initialization of a repository into the constructor instead of a method.