Remove unuseful conditions