Add a basic type map for future options.
Call out parts of code that are textfield specific.
Use a helper function for building the resource token.