Pull out creation of associated type parameters into
a distinct function.