Refactoring on the boundary creation of the ball