[ticket/12115] Use base class to reduce duplicate code

PHPBB3-12115
[ticket/12115] Add migration file to remove old user columns

PHPBB3-12115