Alaska refinery making transition to terminal