Moving primary Pyramid construction code to PyramidBuilder