Declare a text_construct type and related function

This small factorization makes it easier to use for other text
construct fields if it is deemed necessary.