Refactoring google map listeners