Moving certs into their own class to prevent defined type from being

evaluated when the argument is undefined.