LPS-51403 Cleanup Spring initialization api to have a clean and unified logic
LPS-51403 Apply