Refactored element and entity paths with codex.