Convert role to data-hook