Clean up permission registration