Refactoring + Hook loading in Google module