Refactor tools to remove MooTools inheritance