Print namespaced classname only if required