migrate form attribute key to annotations