Refactore configurations table