extract  stores processing method

by doing so we'll be able to call process_stores outside
the save codepath and without opening a transaction.

@dragonfax @osheroff 

Classic PR is waiting green build and coming shortly.