Extract computing conditions code as a method