Deacopling entities with global variable calls