Refactor codes. Make better performance on checking is field with default value.