Extract getAccount and createSession method in Growthbeat class