Enabling inference for context-dependent models of mutation by bounding the propagation of dependency