[ticket/11528] Move related code from functions_posting to function

Move related code from functions_posting to
remove_post_from_statistic() in content_visibility.php

https://tracker.phpbb.com/browse/PHPBB3-12738
PHPBB3-11528
FYI: a lot of code in functions_posting and this class uses this function directly without injecting config object.