Beautified bin/sidef through code refactoring.