Cleaned up code by removing redundant calls to get beaconService and made it a member variable.