A system comprising: a memory configured to store executable components; and a processor, operatively coupled to the memory, configured to execute the executable components, the executable components comprising: a machine learning-based analysis engine configured to perform an analysis of operational data from an industrial automation environment; the machine learning-based analysis engine configured to perform an analysis of control logic (114, 220, 620) for controlling the industrial automation environment; the machine learning-based analysis engine configured to identify, based on the analysis of the operational data and the analysis of the control logic, a variable that is in the control logic but is not used in the operational data; a notification component configured to surface a notification that the variable is in the control logic but is not used in the operational data, wherein the notification comprises a recommendation to remove the variable from the control logic; and a programming component configured to, in response to an input accepting the recommendation to remove the variable from the control logic, remove the variable from the control logic. a memory configured to store executable components; and a processor, operatively coupled to the memory, configured to execute the executable components, the executable components comprising: a machine learning-based analysis engine configured to perform an analysis of operational data from an industrial automation environment; the machine learning-based analysis engine configured to perform an analysis of control logic (114, 220, 620) for controlling the industrial automation environment; the machine learning-based analysis engine configured to identify, based on the analysis of the operational data and the analysis of the control logic, a variable that is in the control logic but is not used in the operational data; a notification component configured to surface a notification that the variable is in the control logic but is not used in the operational data, wherein the notification comprises a recommendation to remove the variable from the control logic; and a programming component configured to, in response to an input accepting the recommendation to remove the variable from the control logic, remove the variable from the control logic. a machine learning-based analysis engine configured to perform an analysis of operational data from an industrial automation environment; the machine learning-based analysis engine configured to perform an analysis of control logic (114, 220, 620) for controlling the industrial automation environment; the machine learning-based analysis engine configured to identify, based on the analysis of the operational data and the analysis of the control logic, a variable that is in the control logic but is not used in the operational data; a notification component configured to surface a notification that the variable is in the control logic but is not used in the operational data, wherein the notification comprises a recommendation to remove the variable from the control logic; and a programming component configured to, in response to an input accepting the recommendation to remove the variable from the control logic, remove the variable from the control logic.