TL;DR: I don't think "derivation" is the right approach for modifying templates -- inheritance of implementation! -- but maybe composition might be an interesting path forward here?