Pulled move out into a method