Refactoring execution of logentries registration.