Automatically set role as pure class.