[ticket/11768] Reordered declarations in services.yml

PHPBB3-11768
[ticket/11768] Moved data-related stuff to its own data-related class

PHPBB3-11768