Cleanup formatting and ready rules.