Identify Reference kind

Here is a small refactoring around `Reference` kinds.