Simplify helpers of Repository::definition[s]For*()
With the member function pointer indirection gone, the type of the inner lambda's name argument (const QString & or QStringView) no longer affects performance.
This refactoring shortens and simplifies the code without affecting the performance of Repository::definition[s]For(FileName|MimeType).