This is the ruby styles coming out, but....

Is there any way to break this method down into smaller functional pieces in the same class or separate into a helper class with smaller class methods? Even if not for reuse, I believe it helps bring clarity to what "build" actually does