I'm not familiar with this endpoint stuff and as I said I'm not even sure this compatibility layer is needed.  Also, it seems that what is left is simple enough, so I'm just going to assume this is all fine.