Revert "Loose coupling", pyang generates code that is dependent on
concrete types, will come back to later when we look at pyang changes

This reverts commit bf64e98049578b1defe953a5e4f0cde8c1156409.