Refactoring Constants et loggging.