I see more problems maintaining this piece of code than a simple explicit instantiation replacing a dummy.