DNN-5943 - Refactoring Controller to Repositories