Refactor binary node to its own file