Refactor nested sequence type definition