Refactored commit service methods.