Remove legacy_build