Rename keys to map
Extract findByPrototype helper
Make parseSelectorIndexes internal