Thomas Jefferson warned Madison that appointing US Representative Joseph Story, R-MA, was a bad idea. Madison appointed him anyway. I aver in James Madison and the Making of America that if the goal of a Supreme Court appointment is to have the appointee reflect the president’s constitutional views in his performance on the bench, Story’s was arguably the worst appointment ever. Story became Marshall’s right-hand man in issuing a string of anti-Jeffersonian constitutional holdings, some of which Madison strongly lamented.
The Second American Party System (Democrats vs. Whigs) was composed of two parties whose leaders had all been Jeffersonian Republicans. The Whigs were generally nationalist.