core: remove getDefault(), getKey() functions

Change-Id: I213dc604b756f11dacfa006118ac44382a5458b9
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>