function getOptionalScaleProps(props) {
  return Object.keys(props).reduce((acc, prop) => {
    const propIsNotOptional = OPTIONAL_SCALE_PROPS_REGS.every(
      reg => !prop.match(reg)
    );
    if (propIsNotOptional) {
      return acc;
    }
    acc[prop] = props[prop];
    return acc;
  }, {});
}
Get the list of optional scale-related settings for XYPlot
mostly just used to find padding properties
@param {Object} props Object of props.
@returns {Object} Optional Props.
@private