Moved local object methods to a separate class.