Reorganize code and move methods from zoom.go to other files.