refactor uses and defs

Summary: move Database_code.entity_kind to the last one, so that it loosely matches graph_code.node

Test Plan: make test

Reviewers: pad

Differential Revision: https://phabricator.fb.com/D895089