Removing or editing Top Menu

I want to remove the logout button and the administration button from the top menu, and I've already read around and looked at the obvious files like topbar_tools.php and topbar.php but i dont see an obvious way to edit it. Can anyone provide some guides on how to do this in 1.8?