Remove a lot of useless code

This is mostly code that came from the copy & paste from barclamp-nova.