Extracted duplicated code for parsing expressions into one method.
Merged code which was common for collection identifiers in a certain
range.