removing some duplicate code

The two methods are identical and more user code is in supervisor.datatypes so it made more sense to keep it there.