Applied the cupcake pattern to the Repositories controller