Clean a few unused lines in `_registerWithRAF`.