Move processing methods to separated class.