Move remaining twelvesands.php functions to object