Adjusted a repository pattern to the recent function rename