Move conversion to SubmitTypeRecords into SubmitRuleEvaluator

Similar to TestSubmitRule/canSubmit, much logic was shared between
TestSubmitType and getSubmitType.

Change-Id: I212a4f225a741932474659bcf0133f086240fb7d
3 files changed