Make def private

Closes #15515
Merge pull request #16120 from cachedout/issue_15515

Make def private