Yes, this method is very similar to the method cutOutMessages. I will try to eliminate redundancy.