Yes, but its code is different from mine only by the presence of extra variables ($object, $objectType, $classKey, $primaryKeyField) https://github.com/modxcms/revolution/blob/develop/core/model/modx/modprocessor.class.php#L366 so I opted modProcessor, although I fully support you in terms of rejection of repeated code.