Remove unused modal code