Extracting runtime env bits into separate class