Convert commit handlers to classmethods