Refactored so that BomView constructor is not doing much work.