[SB2] Refactored manifest parsing to Manifest class.