Refactor Growthbeat class methods