PLA-1790 20% search services refactoring

It might be useful to use wgWikiaEnvironment and envs from Environments.php for future-readiness