Moving the updated sanitization to the init_app method