[TASK] Let Provider return template source if defined

Also introduce constants to store names of key fields.