Remove unnecessary parts