Josh Hayes will start both MotoAmerica Superbike races at Mazda Raceway from the middle of the front row of the grid.