Clean up some unused code.
Remove the use capabilities functions.