Cleanup bit operations.