Removes env setup for testing from core code.