One of my simple rule is that if you use a some properties twice, let's create an intermediate variable to handle it. So |var data = activity.source.data;|