factored out b(?:ui)?ld(?:in)?g?