I'm a little late, but just in case anyone else has this problem - you just need to move your common code into a function, and then pass key/value pairs to the on() function:
function doLog() {
console.log('moving or modified');
}
rect.on({
'moving': doLog,
'modified': doLog
});