Refactor sequence into a constructor fn