Handling commonalities and variabilities