xhci: refactor and cleanup endpoint initialization.