Extract a few methods in long method (functionally equivalent)