Some clean-up
Add ServiceFactory to avoid DBQueryError when running integration tests

1) SWL\Tests\Integration\HooksRegistrationIntegrationTest::testStoreUpdateDataBeforeHook
Query: SELECT  group_id,group_name,group_categories,group_namespaces,group_properties,group_concepts,
ustom_texts  FROM `swl_groups`
Function: DatabaseBase::select
Error: 1146 Table 'mw.swl_groups' doesn't exist (localhost)