refactoring: setting parsing template using reflection