Move handle logout skeleton to API Skeleton