Can you move this exception to a dedicated class and throw it via something like `throw RuntimeException::invalidFindMethodName($repository, $findMethodName)` ?