Remove deprecated BUILD_FLAGS.