Refactor table operation methods into functions in operations module