Refactor; generalise approach to indentifying parameters in normalisable error messages