Refactor teardown logout functionality to a custom helper