[BuddyPress] Remove Username Field from Registration

I can see that the workaround provided is a couple years old and might need an update. I couldn’t find any other workarounds searching through the web.

Would it be possible to update this workaround so that it works with the current registration or could someone provide a different workaround?