Remove the use of typename outside a template expression