[ticket/11854] Remove constants and use DI for QA tables

PHPBB3-11854