LPS-46262 Move logic to rusable objects by plugins