Removing unnecessary scripts related with assignments.