Use templates/context instead of hookfor to add mocks/repositories/etc.