These shouldn't be needed. Use the existing CommandContextFactory methods that take these.