Refactor the t5internal library into its own separate (internal) library