Streamline BaseController

Made the repository protected members instead of methods.