An inverted Y-tool is positioned in multiphase wellbore fluid flowing through a wellbore. The inverted Y-tool separates at least a portion of gas from the multiphase wellbore fluid and, after separating at least the portion of the gas from the multiphase wellbore fluid, directs the multiphase wellbore fluid to a downhole pump that pumps the wellbore fluid in an uphole direction.