Avoid some template instantiations where possible