Remove the unnecessary portion