Closure to return production environment if set