Refactor constants into UGHlib