Remove deprecated API usage in configuration handler