Code review markups: extracting a utility function, testing an unregister, changing 'raise' to 'fail'