Remove unuseful shapes.