Simplified detector and detector layer factory implementation.