The 30-something owners loved their apartment’s original moldings and parquet floors—but hated its 18th-century layout