Reduce setup env code