Robust active galactic nucleus and host-galaxy decomposition in optical spectral fitting | Synapse