Basic factory for creating config