We could move this method to communty.py, I didn't do this as some other methods are planned to be moved as well.
Alternatively, we could add a small method in community.py which calls this method but call the community._get_packets_for_bloomfilters from within the on_intro_request and create_intro_request methods.