Some code improvement to increase performance.

Put extbase model mappings to extension setup, to prevent the appear of an exception if the user has forgotten to include the static setup to template.