Move logging cleanup script into separate package