Refactor PerimeterBoxProfileTool