Replace all breaks with Scala builtins