Once a ‘Dog,’ Refining Becomes Driver of Oil Profits