[Form] Log deprecation of constants, fixes #12607 #12667