Use the partials.types include instead of a bunch of code.