Implement missing Lab integration API (+ refactor it a bit)

[#84488474]