Abstract get_posts_to_process method