[ticket/11508] Move the stripping param code to separate function as well.

PHPBB3-11508