Refactoring to pull out C-Get and C-Store handlers