Refactore todo in StudLib.