Make usage of ObserverPathnameExtension more obvious

Remove use of globals.