[ticket/8309] Removing key with similar function to avoid redundancy

PHPBB3-8309