Knots refactored