Cleanup pattern placement.