Refactoring Bin key
Refactoring Bin key logic