Remove usage of global object.