remove unused code from BuilderHelper and CompileAction