Refactor object configuration approach