Finally sorted out the constants for client. Requiring the code and instantiating the client instance is at too high a level!