From https://gerrit.wikimedia.org/r/#/c/434704/
This way is an anti-pattern and we should not go this way. The standard that people are trying to apply to mediawiki and its extensions (for now) is to use MediawikiServices instead. The best extension I can find is https://github.com/wikimedia/mediawiki-extensions-Cognate Please use it this way
- [setup, LoggingHelper](https://gerrit.wikimedia.org/r/439618)
- [ConstraintRepository, ConstraintLookup](https://gerrit.wikimedia.org/r/439619)
- [CheckResultSerializer, CheckResultDeserializer](https://gerrit.wikimedia.org/r/439620)
- extract constants
- [ViolationMessageSerializer, ViolationMessageDeserializer](https://gerrit.wikimedia.org/r/439953)
- [ConstraintParameterParser](https://gerrit.wikimedia.org/r/439962)
- [SparqlHelper refactoring](https://gerrit.wikimedia.org/r/457493)
- helpers
- Wikibase services
- extract Wikibase services
- [constraint checkers + DelegatingConstraintChecker](https://gerrit.wikimedia.org/r/459802)
- results source
- …?