Removed method Data.getBasePath since needed functionality belongs on DataPath instead.
Renamed functionality to a more accurate name: removeIndexFromLastElement