Allow mongo relation templates to be overwritten by config