refactor(nestedAccess): move nested access function into it's own utility service function