Code cleanup.

Avoid repetetive boilerplate code by using helper methods.

Change-Id: Id3ce8d07d35d59c08cbc67fa35bbf6daa67c9608
Merge "Code cleanup." into cm-11.0
Revert "[2/2] Dialer: Add a non-intrusive dialoger for incoming calls"

This reverts commit 0bf8b9852a6a5337a18ec00e5e08053ccaaf60ee.
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_packages_apps_Dialer into kitkat