The global function wfConfiguredReadOnlyReason is only used in JobQueueGroup::singleton. I suggest moving the one line of code to where it is needed and deprecating and removing the global function
Codesearch: https://codesearch.wmcloud.org/search/?q=wfConfiguredReadOnlyReason&i=nope&files=&repos=