Remove a huge load of unused functions