[ticket/11306] Introduce phpbb_create_default_container

Extracts default container construction to factory function, removing
boilerplate duplication for container construction.

[PHPBB3-11306](http://tracker.phpbb.com/browse/PHPBB3-11306)