[Google] Merge common functions to a new google controller