Remove unnecessary relation