Parse an expand query parameter and remove it from the query object