Remove unused variable $packages