Move export env to common for testability