Refactored: code bits