Feature pithos backend refactoring