Reduced code footprint through combining some rules