Refactoring infoWindows in markers