Separate RailsExtractor and DottedKeyExtractor

DottedKeyExtractor shouldn’t remove the first element in the path, but
RailsExtractor should.