Cypher is correct, there isn't a way to stop hamsters from pooing all over, it's just their thing! Hamster feces do not contain high levels of bacteria/infectious diseases like they do in other animals and thus it's not a concern of whether or not it's sanitary. Have fun with little cheese