Before fire, Philadelphia refinery scaled back big maintenance project