Deduce parameters implicitly from model factory function.