Removed redundant function for shape enum.