if it's your friend you can be gentle but direct. you can explain that you think the common spaces should be respected more, and even offer to help clean it up with them the first time around (though if it's strictly their mess that shouldn't be the norm). honesty is the best policy here, so if it keeps being an issues, have another convo.