diff --git a/Applications/Utils/SimpleMeshCreation/generateStructuredMesh.cpp b/Applications/Utils/SimpleMeshCreation/generateStructuredMesh.cpp
index 35a75789164e70ec854a0cd52dc242fc44b1e147..7a45a1b412097adc7c8816bd9c45dde618958452 100644
--- a/Applications/Utils/SimpleMeshCreation/generateStructuredMesh.cpp
+++ b/Applications/Utils/SimpleMeshCreation/generateStructuredMesh.cpp
@@ -29,6 +29,32 @@
 // FileIO
 #include "FileIO/Legacy/MeshIO.h"
 
+namespace
+{
+    
+/// Get dimension of the mesh element type.
+/// @param eleType element type
+unsigned getDimension(MeshElemType eleType)
+{
+    switch (eleType)
+    {
+        case MeshElemType::LINE:
+            return 1;
+        case MeshElemType::QUAD:
+        case MeshElemType::TRIANGLE:
+            return 2;
+        case MeshElemType::HEXAHEDRON:
+        case MeshElemType::PRISM:
+        case MeshElemType::PYRAMID:
+        case MeshElemType::TETRAHEDRON:
+            return 3;
+        default:
+            return 0;
+    }
+}
+
+} // end namespace
+
 
 int main (int argc, char* argv[])
 {
@@ -68,7 +94,7 @@ int main (int argc, char* argv[])
 	cmd.parse(argc, argv);
 	const std::string eleTypeName(eleTypeArg.getValue());
 	const MeshElemType eleType = String2MeshElemType(eleTypeName);
-	const unsigned dim = MeshLib::Element::getDimension(eleType);
+	const unsigned dim = getDimension(eleType);
 
 	bool dim_used[3] = {false};
 	for (unsigned i=0; i<dim; i++)
diff --git a/MeshLib/Elements/Element.cpp b/MeshLib/Elements/Element.cpp
index ef8a581cad25aad9207c94edaaac802e4d8b5e66..d2398dc783d6e844016226025b326f95abcd64f4 100644
--- a/MeshLib/Elements/Element.cpp
+++ b/MeshLib/Elements/Element.cpp
@@ -170,23 +170,4 @@ bool Element::isBoundaryElement() const
         [](MeshLib::Element const*const e){ return e == nullptr; });
 }
 
-unsigned Element::getDimension(MeshElemType eleType)
-{
-	switch (eleType)
-	{
-	case MeshElemType::LINE:
-		return 1;
-	case MeshElemType::QUAD:
-	case MeshElemType::TRIANGLE:
-		return 2;
-	case MeshElemType::HEXAHEDRON:
-	case MeshElemType::PRISM:
-	case MeshElemType::PYRAMID:
-	case MeshElemType::TETRAHEDRON:
-		return 3;
-	default:
-		return 0;
-	}
-}
-
 }
diff --git a/MeshLib/Elements/Element.h b/MeshLib/Elements/Element.h
index 6fcd10f43c19097c69de73f2413ef17358492441..deb21931ee62ef6696886c44cb0b04d95a412fa4 100644
--- a/MeshLib/Elements/Element.h
+++ b/MeshLib/Elements/Element.h
@@ -80,10 +80,6 @@ public:
 	/// Get dimension of the mesh element.
 	virtual unsigned getDimension() const = 0;
 
-	/// Get dimension of the mesh element type.
-	/// @param eleType element type
-	static unsigned getDimension(MeshElemType eleType);
-
 	/// Returns the i-th edge of the element.
 	const Element* getEdge(unsigned i) const;