Refactor default value adapter for autoincrement field.