[ticket/11445] Remove unused foreach key $group_name

PHPBB3-11445
[ticket/11445] Move get user's notification code into its own method

PHPBB3-11445