Removing redundant auto_rotation events